Skip to content

fix Button.js: put an undefined-check for TouchableNativeFeedback#58

Open
ngduc wants to merge 2 commits into
APSL:masterfrom
ngduc:master
Open

fix Button.js: put an undefined-check for TouchableNativeFeedback#58
ngduc wants to merge 2 commits into
APSL:masterfrom
ngduc:master

Conversation

@ngduc

@ngduc ngduc commented Dec 3, 2016

Copy link
Copy Markdown

Context:
I'm using "react-native-web" & "react-native-gifted-form" which has "APSL/react-native-button" as a dependency.
I think because in web mode, TouchableNativeFeedback is undefined, it crashed my app.

I just added an undefined-check for TouchableNativeFeedback.
Please merge. Thanks.

image

@ngduc

ngduc commented Dec 6, 2016

Copy link
Copy Markdown
Author

@alvaromb: could you merge this minor commit? Thanks.

@alvaromb

alvaromb commented Dec 7, 2016

Copy link
Copy Markdown
Collaborator

Hi @ngduc!

Please be patient, I want to check why the tests are failing.

Thanks.

@ngduc

ngduc commented Dec 9, 2016

Copy link
Copy Markdown
Author

@alvaromb The failed tests may be related to this - jestjs/jest#1840

Have you tried this?

This was due react@^15.3.2 resolve to react@15.4.0 due how npm semver works.
Setting the react version to react@~15.3.2 solved the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants